package com.itheima.service.mongo;

import com.itheima.domain.mongo.Movement;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface MovementService {
    void save(Movement movement);

    // 查询个人（我的）动态
    PageBeanVo findMyMovementByPage(Long userId,Integer pageNumber,Integer pageSize);

    // 查看好友动态
    PageBeanVo findFriendMovementByPage(Long userId, Integer pageNum, Integer pageSize);

    // 查看推荐动态
    PageBeanVo findRecommendMovementByPage(Long userId, Integer pageNum, Integer pageSize);

    // 根据主键查询动态详情
    Movement findById(ObjectId id);

}
